package com.example.courtcounter;

import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;

import java.util.ArrayList;
import java.util.List;

public class RateManager<Rateltem> {
        private DBHelper dbHelper;
        private String TBNAME;

        public void DBManager(Context context){
            dbHelper=new DBHelper(context);
            TBNAME=DBHelper.TB_NAME;
        }
        public void add(Rateltem item){
            SQLiteDatabase db=dbHelper.getWritableDatabase;
            ContentValues values=new ContentValues();
            values.put(“curname”,item.getCurName());
            values.put("currate",item.getCurRate());
            db.insert(TBNAME,null,values);
            db.close();
        }


    public void addAll() {
    }

